package com.itheima.homework.集合加强;

import java.util.Random;
import java.util.TreeSet;

public class Demo2 {
    public static void main(String[] args) {
        TreeSet<Integer> set=new TreeSet<>();
        Random ra=new Random();
        while (set.size()<6){
            int i = ra.nextInt(33) + 1;
            set.add(i);
        }
        int i = ra.nextInt(16) + 1;
        set.add(i);
        System.out.println(set);
    }
}
